home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: RE>Script editing within OpenDoc (was: Notification when a
- Sent: 6/4/96 1:12 PM
- Received: 6/4/96 1:21 PM
- From: Jon Pugh, jonpugh@netcom.com
- Reply-To: OpenDoc-Interest@CILabs.ORG
- To: OpenDoc Related Technologies Interest List, OpenDoc-Interest@CILabs
-
- At 3:15 PM 6/4/96, Rob Cope wrote:
- >In the case of a script, I want to have something generic that I can run
- >and hand to any editor to edit/debug. I believe Brad's idea (please
- >correct me if I am wrong) was to store text that would be compiled and run
- >by his part. To edit the script, he would create an ODStorageUnit with a
- >text property, and bind a text editor to it. At some point (window close
- >in his scheme) he would pull the data out of the text property and compile
- >it.
-
- This is probably more complicated than necessary. Right now we typically
- store the script as a resource in script files. It would make sense to
- store it in a storage unit instead. It might also make sense to provide
- either a seperate representation of the script in text or a trivial method
- of converting the script to text, which is how script editors display the
- styled text. I'm not sure how to do the latter in OpenDoc. It's not hard
- in the OSA, I just don't know enough about the translation services in
- OpenDoc yet. I guess I'll go read some documentation. ;)
-
- >It sounds like your point is that "text" is not the proper object, because
- >the part cannot handle compile errors, debugging, libraries, etc. So what
- >we need is a generic script object that any script editor could
- >edit/debugg, and that interested parts (like a button) could execute
- >without having to have the editor that created it (though they might need
- >to pass error info off to one). Does that sound reasonable to you? Does
- >that sound like something that needs to be invented, or does the correct
- >data type already exist (I'm not an AppleEvent expert yet)?
-
- Yes, I think the proper thing is to create a standard type for scripts and
- use that as the base storage unit. Then you can add other "value-added"
- properties to the storage unit for customization. If those got
- standardized among script editors, that would be even better.
-
- We can defined the standard script storage unit format immediately since it
- will be the same as the current resource format. All it needs is a name,
- and I'll bet there's one already defined. Hmm, "kODCategoryScript" looks
- promising. I wish I hadn't slept through that OpenDoc course about now.
- ;)
-
- Jon
-
-